﻿<%@ Page Title="项目列表-首家汽车行业人才测评系统" Language="C#" MasterPageFile="~/System/SiteSystem.Master"
    AutoEventWireup="true" CodeBehind="ActivityList.aspx.cs" Inherits="EvaluationSystem.ActivityList" %>

<%--<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>--%>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        用户登录名:<asp:Label ID="lblEnterpriseName" runat="server" Width="120px" Font-Names="宋体"></asp:Label>
        公司全称:<asp:Label ID="lblEnterpriseFull" runat="server" Width="200px" Font-Names="宋体"></asp:Label>
        <asp:TextBox ID="txtbActivityenterpriseuid" runat="server" Width="120px" Visible="false"></asp:TextBox>
    </p>
    <asp:GridView ID="grVActivityManage" runat="server" AutoGenerateColumns="False" CellPadding="4"
        DataKeyNames="activity_id,position_id,activity_name" ForeColor="#333333" GridLines="None"
        Width="100%" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="grVActivityManage_RowCommand">
        <FooterStyle BackColor="#63C1CD" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:TemplateField HeaderText="选择">
                <ItemTemplate>
                    <asp:CheckBox ID="CB_Select" runat="server" AutoPostBack="false" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:BoundField DataField="activity_id" HeaderText="项目ID" ReadOnly="True" SortExpression="activity_id"
                Visible="false">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="activity_enterpriseuid" HeaderText="企业ID" ReadOnly="True"
                SortExpression="activity_enterpriseuid" Visible="false" />
            <asp:BoundField DataField="activity_positionid" HeaderText="岗位ID" ReadOnly="True"
                SortExpression="activity_positionid" Visible="false" />
            <asp:BoundField DataField="activity_name" HeaderText="项目名称" SortExpression="activity_name">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="position_name" HeaderText="测评岗位" SortExpression="activity_positionid">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="totalGUID" HeaderText="总次数" SortExpression="totalGUID">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="usedGUID" HeaderText="已用次数" SortExpression="usedGUID">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="remainGUID" HeaderText="剩余次数" SortExpression="remainGUID">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="" HeaderText="维度数量" SortExpression="" Visible="false">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="activity_id" DataNavigateUrlFormatString="DimensionSet.aspx?mode=1&actid={0}"
                HeaderText="维度订制" Text="制定">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="activity_id,activity_name" HeaderText="续费"
                DataNavigateUrlFormatString="Afford.aspx?actid={0}&actnm={1}" Text="续费">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="" HeaderText="入帐时间" SortExpression="" Visible="false">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="" HeaderText="购买次数" SortExpression="" Visible="false">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="activity_money" HeaderText="入款金额" SortExpression="" DataFormatString="{0:C}">
                <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="activity_status" HeaderText="项目状态" SortExpression="">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:ButtonField ButtonType="Button" HeaderText="导出结果" CommandName="Export" Text="导出"
                ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:ButtonField>
        </Columns>
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EmptyDataTemplate>
            您好！当前用户没有创建测评项目。
        </EmptyDataTemplate>
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#63C1CD" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <asp:CheckBox ID="CB_SelectAll" runat="server" AutoPostBack="true" Text="全选" OnCheckedChanged="CB_SelectAll_CheckedChanged" />
    <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" />
    <asp:Button ID="btnAdd" runat="server" Text="新增项目" OnClick="btnAdd_Click" />
</asp:Content>
